<template>
	<view class="content">
		<view class="consulting-service">
			<image src="../../static/images/common/zixun.png" mode=""></image>
		</view>
		<swiper class="banner-swiper" autoplay="true">
			<swiper-item>
				<image class="banner-image" src="../../static/images/index/baner1.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/images/index/baner1.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/images/index/baner1.png" mode="aspectFit"></image>
			</swiper-item>
		</swiper>
		<view class="group-menu">
			<view class="group-menu-item" @click="unitoTRproject">
				<image class="group-menu-item-icon" src="../../static/images/icon/loupan_icon.png"></image>
				<view class="group-menu-item-text">热改楼盘</view>
			</view>
			<view class="group-menu-item" @click="unitoBagcheck">
				<image class="group-menu-item-icon" src="../../static/images/icon/linbao_icon.png"></image>
				<view class="group-menu-item-text">拎包入住</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/gongdi_icon.png"></image>
				<view class="group-menu-item-text">工地实景</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/baojie_icon.png"></image>
				<view class="group-menu-item-text">保洁阿姨</view>
			</view>
		</view>
		<view class="building-list">
			<view class="building-header">
				<view class="building-header-left">
					<view class="line"></view>热改楼盘
				</view>
				<view class="building-header-right" @click="unitoTRproject">
					更多
				</view>
			</view>
			<view class="building-list-content">
				<view class="building-item-content" @click="unitoTRPDetails">
					<image class="building-item-image" mode="aspectFit" src="../../static/images/index/build1.png">
					</image>
					<view class="building-item-title">天和尚上海</view>
					<view class="building-item-text">150m²/北欧风</view>
					<view class="building-item-mark"></view>
				</view>
				<view class="building-item-content" @click="unitoTRPDetails">
					<image class="building-item-image" mode="aspectFit" src="../../static/images/index/build1.png">
					</image>
					<view class="building-item-title">天和尚上海</view>
					<view class="building-item-text">150m²/北欧风</view>
					<view class="building-item-mark"></view>
				</view>
			</view>
		</view>

		<!-- 拎包入住 -->
		<view class="handbag-list">
			<view class="handbag-header">
				<view class="handbag-header-left">
					<view class="line"></view>拎包入住
				</view>
				<view class="handbag-header-right" @click="unitoBagcheck">
					更多
				</view>
			</view>
			<view class="handbag-list-content">
				<view class="handbag-item-content">
					<image class="handbag-item-image" mode="aspectFit" src="../../static/images/index/build2.png">
					</image>
					<view class="handbag-item-mark"></view>
					<view class="handbag-item-title">某某某某某某套餐</view>
					<view class="handbag-item-text">150-180m²</view>
					<view class="handbag-item-text2">套餐具体套餐具体套餐具体套餐具体套 餐具体</view>
				</view>
				<view class="handbag-item-content">
					<image class="handbag-item-image" mode="aspectFit" src="../../static/images/index/build2.png">
					</image>
					<view class="handbag-item-mark"></view>
					<view class="handbag-item-title">某某某某某某套餐</view>
					<view class="handbag-item-text">150-180m²</view>
					<view class="handbag-item-text2">套餐具体套餐具体套餐具体套餐具体套 餐具体</view>
				</view>
			</view>
		</view>
		<!-- 工地实景 -->
		<view class="work-list">
			<view class="work-header">
				<view class="work-header-left">
					<view class="line"></view>工地实景
				</view>
				<view class="work-header-right">
					更多
				</view>
			</view>
			<view class="work-list-content">
				<view class="work-item-content">
					<image class="work-item-image" mode="aspectFit" src="../../static/images/index/baner2.png"></image>
					<view class="work-item-title">天和尚上海</view>
					<view class="work-item-mark"></view>
				</view>
				<view class="work-item-content">
					<image class="work-item-image" mode="aspectFit" src="../../static/images/index/baner2.png"></image>
					<view class="work-item-title">天和尚上海</view>
					<view class="work-item-mark"></view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				title: 'Hello 许荏凯-202165110401'
			}
		},
		onLoad() {

		},
		methods: {
			unitoTRproject(){
				uni.navigateTo({
					url:"/pages/index/TR-project"
				})
			},
			unitoBagcheck(){
				uni.navigateTo({
					url:"/pages/bagCheck/bagCheck"
				})
			},
			unitoTRPDetails(){
				uni.navigateTo({
					url:"/pages/TRPDetails/TRPDetails"
				})
			}
		}
	}
</script>
<style>
	.work-list-content {
		box-sizing: border-box;
		overflow-x: scroll;
		margin-top: 20rpx;
		display: flex;
		flex-direction: row;
		/* transform: translate(-2%); */
		padding-left: .2rem;
	}

	.work-item-content {
		width: 582rpx;
		height: 336rpx;
		position: relative;
		margin-left: 1.2rem;
	}

	/* 工地展示图片 */
	.work-item-image {
		width: 582rpx;
		height: 336rpx;
		background: rgba(0, 0, 0, 0.10);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	/* 笼罩阴影透明部分 */
	.work-item-mark {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		width: 582rpx;
		height: 53rpx;
		bottom: 0px;
		left: 0px;
		background: rgba(0, 0, 0, .3);
		border-radius: 0px 0px 8px 8px;
	}
	.work-item-title{
		width: 100%;
		height: 17px;
		bottom: 5rpx;
		left: 10px;
		position: absolute;
		font-size: 14px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 100;
		text-align: CENTER;
		color: #ffffff;
		line-height: 12px;
		z-index: 1;
	}



	.handbag-list-content {
		box-sizing: border-box;
		overflow-x: scroll;
		display: flex;
		flex-direction: row;
		margin-top: 20rpx;
		transform: translate(-3%);
		padding-left: 20px;
	}

	.handbag-item-content {
		width: 382rpx;
		height: 510rpx;
		position: relative;
		margin-left: 20px;
	}

	/* 拎包入住展示图片 */
	.handbag-item-image {
		width: 382rpx;
		height: 510rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	/* 笼罩阴影透明部分 */
	.handbag-item-mark {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		width: 191px;
		height: 82px;
		bottom: 0px;
		left: 0px;
		background: rgba(0, 0, 0, .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.handbag-item-title {
		width: 96px;
		height: 17px;
		bottom: 115rpx;
		left: 10px;
		position: absolute;
		font-size: 12px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 400;
		text-align: CENTER;
		color: #ffffff;
		line-height: 12px;
		z-index: 1;
	}

	.handbag-item-text {
		width: 97px;
		height: 14px;
		opacity: 0.6;
		font-size: 10px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 100;
		text-align: CENTER;
		color: #ffffff;
		line-height: 10px;
		position: absolute;
		bottom: 77rpx;
		transform: translate(-10%);
		z-index: 1;
	}
	.handbag-item-text2{
		width: 90%;
		height: 14px;
		opacity: 0.7;
		font-size: 10px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 100;
		text-align: left;
		color: #ffffff;
		line-height: 10px;
		position: absolute;
		bottom: 40rpx;
		left: 10px;
		z-index: 1;
	}

	.building-list-content {
		box-sizing: border-box;
		overflow-x: scroll;
		margin-top: 20rpx;
		display: flex;
		flex-direction: row;
		transform: translate(-3%);
		padding-left: 20px;
	}

	.building-item-content {
		width: 382rpx;
		height: 510rpx;
		position: relative;
		margin-left: 20px;
	}

	/* 热改楼盘展示图片 */
	.building-item-image {
		width: 382rpx;
		height: 510rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	/* 笼罩阴影透明部分 */
	.building-item-mark {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		bottom: 0px;
		left: 0px;
		width: 382rpx;
		height: 94rpx;
		background: rgba(0, 0, 0, .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.building-item-title {
		width: 60px;
		height: 17px;
		bottom: 50rpx;
		left: 10px;
		position: absolute;
		font-size: 12px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 400;
		text-align: CENTER;
		color: #ffffff;
		line-height: 12px;
		z-index: 1;
	}

	.building-item-text {
		width: 97px;
		height: 14px;
		opacity: 0.8;
		font-size: 10px;
		font-family: "PingFang SC", "PingFang SC-Bold";
		font-weight: 400;
		text-align: CENTER;
		color: #ffffff;
		line-height: 10px;
		position: absolute;
		bottom: 17rpx;
		left: 0px;
		z-index: 1;
	}


	* {
		margin: 0 auto;
		padding: 0 0;
	}

	.content {
		width: 100vw;
		height: 100vh;
		background-color: #f5f5f5;
		box-sizing: border-box; //盒子模型
	}

	.banner-swiper {
		width: 100%;
		height: 450rpx;
	}

	.banner-image {
		width: 100%;
		height: 100%;
	}

	.group-menu {
		box-sizing: border-box;
		padding: 40rpx 52rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.group-menu-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.group-menu-item-icon {
		width: 80rpx;
		height: 80rpx;
	}

	.group-menu-item-text {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		margin-top: 8rpx;
		line-height: 24rpx;
	}

	.building-list {
		background: #ffffff;
		box-sizing: border-box;
		width: 375px;
		height: 313px;
		padding-top: 34px;
	}

	.building-header {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.building-header-left {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;
		display: flex;
		align-items: center;
	}

	.line {
		width: 6rpx;
		height: 28rpx;
		background: #3d9c36;
		margin-right: 20rpx;
	}

	.building-header-right {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
	}

	.building-header-right::after {
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}

	/* 拎包入住 */
	.handbag-list {
		background: #ffffff;
		box-sizing: border-box;
		width: 375px;
		height: 313px;
		padding-top: 34px;
		padding-bottom: 28px;
	}

	.handbag-header {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.handbag-header-left {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;
		display: flex;
		align-items: center;
	}

	.handbag-header-right {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
	}

	.handbag-header-right::after {
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}

	/* 工地 */
	.work-list {
		background: #ffffff;
		box-sizing: border-box;
		width: 375px;
		height: 276px;
		padding-top: 34px;
		padding-bottom: 28px;
	}

	.work-header {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.work-header-left {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;
		display: flex;
		align-items: center;
	}

	.work-header-right {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
	}

	.work-header-right::after {
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}

	.consulting-service {
		box-sizing: border-box;
		position: relative;
		z-index: 1;
	}

	.consulting-service image {
		width: 91px;
		height: 111px;
		position: fixed;
		bottom: 50px;
		right: 0;
	}
</style>
